<script src="javascripts/dwz.entitys.js" type="text/javascript"></script>
<div class="page" categoryId={category_id} entity={entity} sign={sign}>
	<div class="pageHeader" style="overflow: visible; padding: 0; height: 30px;_z-index: 2;">
		<!-- 临时屏蔽 -->
		<div class="searchBar">
			<form onsubmit="var $more=$(this).find('div.more');if($more.attr('class')=='more moreExpandable'){$(this).find('div.more').click();};navTabSearch(this);bindEntityColumnSum($(this).parents('.page').eq(0).find('.sumtotal[action]'),$(this));return false;" search="entity">
				<table style="width: 100%;">
					<tr>
						<td class="searchCont">
							<div>
								<div class="searchContent" style="_display: inline;"></div>
							</div>
						</td>
						<td width="120px" align="right" style="padding-right: 5px;text-align: left;" valign="top">
							<div class="more moreCollapsable" rel="searcher">more</div>
							<div class="buttonActive">
								<div class="buttonContent">
									<button type="submit">查找</button>
								</div>
							</div>
							<div class="buttonActive">
								<div class="buttonContent">
									<button type="reset">重置</button>
								</div>
							</div>
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" url="entity_add.html?category_id={category_id}&entity={entity}" callback="reload" target="dialog" rel="entity_add" width="780" height="530"
					titleable="false"><span>添加</span></a></li>
				<li><a class="delete" url="{entity}/{entity_id}?category_id={category_id}" area="tbody.list" callback="reload" type="delete" target="navTabTodo" title="确定要删除选中的数据吗？"
					warn="请选择需要删除的数据项！"><span>删除</span></a></li>
				<!-- 临时屏蔽（车管所系统不需要此功能）
				<li><a url="entity/tree.html?entity={entity}&category_id=0" callback="reload" target="dialog" rel="select_category" width="300" height="450"><span>选择分类</span></a></li>
				-->
				<li><a width="300" height="450" onclick="clickMove(this)" category_id={category_id}><span>移动</span></a>
					<a url="entity/tree.html?entity={entity}&category_id=0&type=treeRadio" callback="move" target="dialog" width="300" height="450" style="display: none">移动</a>
				</li>
				<!-- 临时屏蔽（车管所系统不需要此功能）
				<li><a width="300" height="450" onclick="clickCopy(this)" category_id={category_id}><span>复制</span></a>
					<a url="entity/tree.html?entity={entity}&category_id=0&type=treeCheck" callback="copy" target="dialog" width="300" height="450" style="display: none">复制</a>
				</li>
				-->
				<li><a url="/services/category/{category_id}/export?sign={sign}" onclick="exportEntity(this)"><span>导出</span></a></li>
				<!-- 
				<li class="info">提示：双击带有<img src="themes/default/images/grid/edit.png"/>的内容进入编辑！</li>
				 -->
				 <!-- 金额统计 -->
				 <li class="info sumtotal" action="category/{category_id}/entity/sumtotal?entity={entity}&sign={sign}&only_cur_category=false&sumEntityExtFields=payprice"><p>指定年份支付金额：<b value="payprice">-</b>元</p></li>
			</ul>
		</div>
		<table class="list" search="entity" width="100%" layoutH="90">
			<thead>
				<tr>
					<th width="25"><input type="checkbox" name="objectId" value="entity_id" /></th>
					<!-- <th width="25" class="hide">ID</th>  -->
					<!-- <th width="35">图片</th> -->
					<th width="150">标题</th>
					<!-- 
					<th>描述</th>
					<th width="125">创建时间</th>
					 -->
					<th  align="right" extcol="true"><span style="float: left; line-height: 20px;">操作</span><a url="entity/cols.html?category_id={category_id}&sign={sign}"
						target="dialog" width="450" height="300" maxable="false" callback="reload" style="float: right;" title="设置显示/隐藏列">设置</a></th>
				</tr>
			</thead>
			<tbody style="display: none;" class="templet">
				<tr entity="${entity_id}" put="{entity}/${entity_id}">
					<td><input type="checkbox" name="entity_id" value="${entity_id}" entityType={entity} categoryId={category_id} /></td>
					<!-- 
					<td class="hide">${entity_id}</td>
					 -->
					<!-- 
					<td>
					<a url="multiupload/multiupload.html?ext=图片文件(*.jpg;*.gif;*.png;*.bmp;*.jpeg)&count=1&size=500KB&params={entity_id:${entity_id}}" target="dialog" rel="multiupload" iframe="true" mask="true" width="400" height="300" callback="uploadEntityPic(data,this)">
						<img name="picture" src="images/jpg.gif" onerror="this.src='images/jpg.gif'" path="${small}" midpath="${middle}" oldpath="${origin}" height="21px" title="点击上传文件"/></a>
					</td>
					 -->
					<td name="title" align="center" field="title" validator="required" title="${title}" class="ontop${ontop}">${title}</td>
					<!-- 
					<td name="content" class="edit" type="editor" field="content" title="${summary}" url="{entity}/${entity_id}?fields=content,summary">${summary}</td>
					<td name="create_date">${create_date}</td>
					 -->
					<td extcol="true" align="center">
						<!-- 临时屏蔽 公共修改页面 by dengjinye 20130412--> <!-- callback="updateEntityItem" 无法刷新置顶,所以只能reload --> 
						
						<!-- "明细"，"附件"的文字改成图标
						<a class="edit"
						url="entity_update.html?category_id={category_id}&entity_id=${entity_id}&entity={entity}&sign={sign}" target="dialog" warn="非法参数（${entity_id}）" width="780" height="560"
						callback="reload" title="查看【${title}】明细"><span>明细</span></a> <a class="edit" name="show" warn="非法参数（${entity_id}）" target="ajax"
						url="entity/tabs.html?entity_id=${entity_id}&entity={entity}" rel="{category_id}_entity${entity_id}" callback="showChildren">附件 </a>
						-->
						
						<!--  -->
						<a class="edit"	url="entity_update.html?category_id={category_id}&entity_id=${entity_id}&entity={entity}&sign={sign}" target="dialog" warn="非法参数（${entity_id}）" width="780" height="560" callback="reload" title="查看【${title}】明细" style="margin-right: 10px">
							<span><img src="./themes/default/images/form/update.gif"></span>
						</a> 
						<a class="edit" name="show" warn="非法参数（${entity_id}）" target="ajax" url="entity/tabs.html?entity_id=${entity_id}&entity={entity}" rel="{category_id}_entity${entity_id}" callback="showChildren" title="查看【${title}】附件">
							<span><img src="./themes/default/images/form/attach.gif"></span> 
						</a>
						 
					</td>
				</tr>
				<tr parentEntity="${entity_id}" class="hide">
					<td align="right" id="{category_id}_entity${entity_id}" class="shade" style="padding-bottom: 3px;"></td>
				</tr>
			</tbody>
			<tbody class="list" url="category/{category_id}/entity?entity={entity}&sign={sign}&only_cur_category=false" subtotal="number3">
			</tbody>
		</table>
		<div class="panelBar">
			<div class="pages"></div>
			<div class="pagination" totalCount="0" numPerPage="20" pageNumShown="10" currentPage="1"></div>
			<div class="clear"></div>
		</div>
	</div>
</div>